package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.SysRoleResource;
import com.zuipin.mapper.SysRoleResourceMapper;
import com.zuipin.service.ISysRoleResourceService;
import com.zuipin.util.Pagination;

/**
 * 服务实现
 * 
 * @ClassName: SysRoleResourceSer5viceImpl
 * @Description: TODO
 * @author  robot
 * @date 2017年09月147日 09:21:09
 */
@Service
public class SysRoleResourceServiceImpl implements ISysRoleResourceService {
	
	@Resource
	private SysRoleResourceMapper sysRoleResourceMapper;
	
	@Override
	public SysRoleResource findById( Long id) {
		return sysRoleResourceMapper.findById(id);
	}
	
	@Override
	public void insert(SysRoleResource sysRoleResource) {
		sysRoleResourceMapper.insert(sysRoleResource);
	}
	
	@Override
	public void update(SysRoleResource sysRoleResource) {
		sysRoleResourceMapper.update(sysRoleResource);
	}
	
	@Override
	public void delete( Long id) {
		sysRoleResourceMapper.delete(id);
		
	}
	
	@Override
	public List<SysRoleResource> seachSysRoleResource(SysRoleResource sysRoleResource, Pagination page) {
		return sysRoleResourceMapper.seachSysRoleResource(sysRoleResource, page);
	}
	
}
